@echo off
echo Downloading Maven...

:: 创建.mvn目录
mkdir .mvn 2>nul

:: 下载Maven
powershell -Command "& {$ProgressPreference = 'SilentlyContinue'; Invoke-WebRequest 'https://mirrors.aliyun.com/apache/maven/maven-3/3.9.6/binaries/apache-maven-3.9.6-bin.zip' -OutFile 'maven.zip'}"

:: 解压
powershell -Command "& {Expand-Archive -Path 'maven.zip' -DestinationPath '.mvn' -Force}"

:: 清理
del maven.zip

echo Maven download completed!
pause 